<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="js/vue.js"></script>
    <title>vue_det</title>
</head>
<body>
    <div id="app">
        <h1>{{site}}</h1>
        <h1>{{url}}</h1>
        <h1>{{details()}}</h1>
    </div>
    <script>
        var vm = new Vue({
            el:'#app' ,
            data:{
                site:"菜鸟教程",
                url:'https://www.runoob.com/vue2/vue-start.html'
                
            },
            methods: {
                details:function(){
                    return this.site + "学的不仅是技术，更是梦想";
                }   
            }
        })
    </script>
</body>
</html>